.number-input-field:invalid {
    -fx-text-fill: red;
    -fx-border-color: red;
}